<@html>
<script type="text/javascript">
	dojo.require("dijit.dijit");
	dojo.require("dijit.form.Form");
	dojo.require("dijit.form.DateTextBox");
	dojo.require("dijit.form.Button");
	dojo.require("dijit.form.ValidationTextBox");
</script>
<form id="updateForm" method="post" dojoType="dijit.form.Form">
<input type="hidden" id="version" name="unloadDock.version"
       value="${(unloadDock.version)!}"/>
<input type="hidden" id="unloadDock" name="unloadDock.id"
       value="${(unloadDock.id)!}"/>
<table>
<tr>
	<td>
	<@s.text name="dockName"/>：
	</td>
	<td>
		<input id="dockName" name="unloadDock.dockName" dojoType="dijit.form.ValidationTextBox" required="true"
		       value="${(unloadDock.dockName)!}"/>
	</td>
	<td>
	<@s.text name="ename"/>：
	</td>
	<td>
		<input id="ename" name="unloadDock.ename" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.ename)!}"/>
	</td>
	<td>
	<@s.text name="contact"/>：
	</td>
	<td>
		<input id="contact" name="unloadDock.contact" dojoType="dijit.form.ValidationTextBox" required="true"
		       value="${(unloadDock.contact)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="contactTel"/>：
	</td>
	<td>
		<input id="contactTel" name="unloadDock.contactTel" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.contactTel)!}"/>
	</td>
	<td>
	<@s.text name="windowTime"/>：
	</td>
	<td>
		<input id="windowTime" name="unloadDock.windowTime" dojoType="dijit.form.ValidationTextBox"
		       required="true" value="${(unloadDock.windowTime)!}"/>
	</td>
	<td>
	<@s.text name="unloadType"/>：
	</td>
	<td>
		<input id="unloadType" name="unloadDock.unloadType" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.unloadType)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="type"/>：
	</td>
	<td>
		<input id="type" name="unloadDock.type" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.type)!}"/>
	</td>
	<td>
	<@s.text name="address"/>：
	</td>
	<td>
		<input id="address" name="unloadDock.address" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.address)!}"/>
	</td>
	<td>
	<@s.text name="remark"/>：
	</td>
	<td>
		<input id="remark" name="unloadDock.remark" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.remark)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf1"/>：
	</td>
	<td>
		<input id="udf1" name="unloadDock.udf1" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf1)!}"/>
	</td>
	<td>
	<@s.text name="udf2"/>：
	</td>
	<td>
		<input id="udf2" name="unloadDock.udf2" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf2)!}"/>
	</td>
	<td>
	<@s.text name="udf3"/>：
	</td>
	<td>
		<input id="udf3" name="unloadDock.udf3" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf3)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf4"/>：
	</td>
	<td>
		<input id="udf4" name="unloadDock.udf4" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf4)!}"/>
	</td>
	<td>
	<@s.text name="udf5"/>：
	</td>
	<td>
		<input id="udf5" name="unloadDock.udf5" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf5)!}"/>
	</td>
	<td>
	<@s.text name="udf6"/>：
	</td>
	<td>
		<input id="udf6" name="unloadDock.udf6" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf6)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf7"/>：
	</td>
	<td>
		<input id="udf7" name="unloadDock.udf7" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf7)!}"/>
	</td>
	<td>
	<@s.text name="udf8"/>：
	</td>
	<td>
		<input id="udf8" name="unloadDock.udf8" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf8)!}"/>
	</td>
	<td>
	<@s.text name="udf9"/>：
	</td>
	<td>
		<input id="udf9" name="unloadDock.udf9" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf9)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf10"/>：
	</td>
	<td>
		<input id="udf10" name="unloadDock.udf10" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf10)!}"/>
	</td>
	<td>
	<@s.text name="udf11"/>：
	</td>
	<td>
		<input id="udf11" name="unloadDock.udf11" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf11)!}"/>
	</td>
	<td>
	<@s.text name="udf12"/>：
	</td>
	<td>
		<input id="udf12" name="unloadDock.udf12" dojoType="dijit.form.ValidationTextBox"
		       value="${(unloadDock.udf12)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf13"/>：
	</td>
	<td>
		<input id="udf13" name="unloadDock.udf13" dojoType="dijit.form.DateTextBox"
		       value="${getDate(unloadDock.udf13)}" value="${(unloadDock.udf13)!}"/>
	</td>
	<td>
	<@s.text name="udf14"/>：
	</td>
	<td>
		<input id="udf14" name="unloadDock.udf14" dojoType="dijit.form.DateTextBox"
		       value="${getDate(unloadDock.udf14)}" value="${(unloadDock.udf14)!}"/>
	</td>
	<td>
	<@s.text name="udf15"/>：
	</td>
	<td>
		<input id="udf15" name="unloadDock.udf15" dojoType="dijit.form.DateTextBox"
		       value="${getDate(unloadDock.udf15)}" value="${(unloadDock.udf15)!}"/>
	</td>
</tr>
<tr>
	<td>
	<@s.text name="udf16"/>：
	</td>
	<td>
		<input id="udf16" name="unloadDock.udf16" dojoType="dijit.form.DateTextBox"
		       value="${getDate(unloadDock.udf16)}" value="${(unloadDock.udf16)!}"/>
	</td>
	<td>
	<@s.text name="udf17"/>：
	</td>
	<td>
		<input id="udf17" name="unloadDock.udf17" dojoType="dijit.form.DateTextBox"
		       value="${getDate(unloadDock.udf17)}" value="${(unloadDock.udf17)!}"/>
	</td>
	<td>
	<@s.text name="udf18"/>：
	</td>
	<td>
		<input id="udf18" name="unloadDock.udf18" dojoType="dijit.form.DateTextBox"
		       value="${getDate(unloadDock.udf18)}" value="${(unloadDock.udf18)!}"/>
	</td>
</tr>
</table>
<div dojoType="dijit.layout.TabContainer" style="width:100%;height:300px;">
</div>
<@listButton/>
</form>
</@html>
<script language="javascript" type="text/javascript">
	dojo.ready(function() {
		//事件注册
		//保存
		dojo.connect(dijit.byId("btnSave"), "onClick", function() {
			//增加列表参数
			var param = dojo.formToObject("updateForm");
			if (dijit.byId("updateForm").validate()) {
				dojo.xhrPost({
							url : "${(path)!}/master/dock.update.do",
							content : param,
							handleAs : "json",
							load : function(json) {
								handleJsonMessage({
											message:json,
											callback:function() {
												parent.publish("dock/refresh");
												parent.closeDialog();
											}
										})
							}
						});
			}
		});
	})
</script>
